<template>
  <div id="comments">
    <!-- 评论组件 -->
    <van-col span="24" class="box7 w">
      <van-col span="24">
        <img :src="avatarUrl" class="box7-user-img" />
        <span style="clear: both; margin-top: -10px; ">{{ nickName }}</span>
        <span style="float: right;">{{ addTime }}</span>
      </van-col>
      <van-col span="24" class="box7-img">
        <p>{{ content }}</p>
        <img :src="img" alt="" v-for="(img, index) in picList" :key="index" />
      </van-col>
    </van-col>
  </div>
</template>
<script>
export default {
  name,
  props: ['avatarUrl', 'nickName', 'addTime', 'content', 'picList'],
  data() {
    return {}
  },
  mounted() {},
  methods: {}
}
</script>
<style lang="less" scoped>
.box7 {
  background-color: #fff;
  .box7-user-img {
    width: 0.3rem;
    margin-top: 0.1rem;
    border-radius: 50%;
  }
  span {
    line-height: 0.7rem;
  }
  .box7-img {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    p {
      margin-top: 0px;
      font-size: 14px;
    }
    img {
      margin-top: 0.1rem;
      height: 100px;
      margin-bottom: 0.2rem;
      margin-right: 0.1rem;
    }
  }
}
</style>
